import HttpHandler from "@/handler/HttpHandler";

export default class customerApi {
    constructor() {
        this.http = new HttpHandler();
    }
    queryList(data) {
        let url = '/tie-mdm/color/queryList';
        return this.http.get(url, data);
    }
    // 获取列表
    queryListPage(data) {
        let url = '/tie-mdm/color/queryListPage';
        return this.http.get(url, data);
    }
    // 新增
    add(data) {
        let url = '/tie-mdm/color/add';
        return this.http.post(url, data);
    }
    // 修改
    update(data) {
        let url = '/tie-mdm/color/update';
        return this.http.post(url, data);
    }
    // 详情
    detail(data) {
        let url = '/tie-mdm/color/queryDetail';
        return this.http.get(url, data);
    }
    // 禁用启用
    changeStatus(data) {
        let url = '/tie-mdm/color/changeStatus';
        return this.http.get(url, data);
    }
    // 删除
    delete(data) {
        let url = '/tie-mdm/color/delete';
        return this.http.get(url, data);
    }
      // 批量启用禁用
    batchChangeState(data) {
        let url = '/tie-mdm/color/batchChangeState';
        return this.http.post(url, data);
    }
      // 删除
    batchDelete(data) {
        let url = '/tie-mdm/color/batchDelete';
        return this.http.post(url, data);
    }

}
